from django.conf.urls.defaults import *

from views import *

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^details/(?P<photo_id>\d+)/$', 'cetphoto.views.image_details'),
    (r'^view/(?P<size>.*)/(?P<photo_id>\d+)/$', 'cetphoto.views.get_image'),
    (r'^(?P<_year>\d+)/(?P<_month>\d+)/(?P<_day>\d+)/$', 'cetphoto.views.view_photos'),
    (r'^(?P<_year>\d+)/(?P<_month>\d+)/$', 'cetphoto.views.view_photos'),
    (r'^(?P<_year>\d+)/$', 'cetphoto.views.view_photos'),
    (r'^ajax_test/$', 'cetphoto.views.ajax_test'),
    (r'^clear_selected_photos/$', 'cetphoto.views.clear_selected_photos'),
    (r'^selected_photos_json/$', 'cetphoto.views.selected_photos_json'),
    (r'^/', index),
)
